package home_8_11;
/**
 * 求应发放奖金总数？
 */

import java.util.Scanner;

public class home01 {
    public static void main(String[] args) {
        int sal=10100100;
        double comm;
        if (sal<=100000){
            comm=sal*0.1;
            System.out.println("奖金为"+comm);
        }else if (sal<=200000){
            comm=0.075*(sal-100000)+10000;
            System.out.println("奖金为"+comm);

        }else if (sal<=400000){
            comm=0.05*(sal-200000)+25000;
            System.out.println("奖金为"+comm);

        }else if (sal<=600000){

            comm=0.03*(sal-400000)+35000;

            System.out.println("奖金为"+comm);
        }else if (sal<=1000000){

            comm=0.015*(sal-600000)+41000;
            System.out.println("奖金为"+comm);
        }else {
            comm=0.01*(sal-1000000)+47000;
            System.out.println("奖金为"+comm);
        }

    }
}
